includejs('./prototype/prototype.js');


  function  request( item, uri ){
	  alert(uri);
//    alert("uri:" + uri);
//    alert("document:" + item.ownerDocument);
    item.ownerDocument.location.href=uri;
//    alert("done!");
  }
  function test(){
      alert("23");
  }
  function checkMultiChecked(name) {
	  alert('check!!!');
	  alert('name:' + document.getElementsByName('buttonedit'));
	  var chkbox = document.getElementsByName(name);
	  var nodes = $A(chkbox);
      var sltNodes = nodes.select(function(node)   
      {   
          return node.checked;   
      });
//      sltNodes.each(function(node)   
//      {   
//          alert(node.value);   
//      });
      if (sltNodes.length > 1) {
    	  alert('more than 1!');
    	  var btns = $A(document.getElementsByName('buttonedit'));
    	  btns.each(function(btn))
    	  {
    		  alert('disable');
    		  //btn.disable = true;
    	  });
      }
  }
  function testSelect()   
  {   
      var chkbox = document.getElementsByName('slt');   
      var nodes = $A(chkbox);   
      var sltNodes = nodes.select(function(node)   
      {   
          return node.checked;   
      });
      sltNodes.each(function(node)   
      {   
          alert(node.value);   
      });   
         
  }
